#!/bin/bash
#
# Declare functions here.
#  They will be called later
#
process(){
   echo process called with argument: $1
}
hello() {
   echo Calling process with $1
   if [ -f $1 ]
   then
      process $1
   else
      echo "$1 is not a file"
      return 1
   fi
   exit 0
}
#
# main
#
if [ "$#" -lt 2 ]
then
   echo "    Use this script with two command line arguments; second should be a file name"
   exit 1
fi

echo -n "Start ...  "
#
# call the function
#
hello $2
#
# done.
echo " ... done!"
